import { coordinateData } from './coordinate-data';
import type { IDataType } from '../types';
export function convertData(data: IDataType[]) {
  const arr = [];
  for (let i = 0; i < data.length; i++) {
    const geoCoord: number[] = coordinateData[data[i].name];
    arr.push({
      name: data[i].name,
      value: geoCoord.concat(data[i].value)
    });
  }
  return arr;
}
